/**
 * 
 */
package net.sowow.ws.mathcalculation;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * The Class MathCalculationImpl.
 *
 * @author allen
 */
public class MathCalculationImpl implements MathCalculationInterface {

	/**
	 * Adds the.
	 *
	 * @param a the a
	 * @param b the b
	 * @return the float
	 * @see net.sowow.ws.mathcalculation.MathCalculationInterface#add(float, float)
	 */
	@Override
	@WebMethod(action = "http://ws.sowow.net/MathCalculation/add")
	@WebResult(name = "result", targetNamespace = "")
	@RequestWrapper(localName = "add", targetNamespace = "http://ws.sowow.net/MathCalculation/", className = "net.sowow.ws.mathcalculation.Add")
	@ResponseWrapper(localName = "addResponse", targetNamespace = "http://ws.sowow.net/MathCalculation/", className = "net.sowow.ws.mathcalculation.AddResponse")
	public float add(@WebParam(name = "a", targetNamespace = "") float a,
			@WebParam(name = "b", targetNamespace = "") float b) {
		float result = a + b;
		return result;
	}

	/**
	 * Substract.
	 *
	 * @param a the a
	 * @param b the b
	 * @return the float
	 * @see net.sowow.ws.mathcalculation.MathCalculationInterface#substract(float, float)
	 */
	@Override
	@WebMethod(action = "http://ws.sowow.net/MathCalculation/substract")
	@WebResult(name = "result", targetNamespace = "")
	@RequestWrapper(localName = "substract", targetNamespace = "http://ws.sowow.net/MathCalculation/", className = "net.sowow.ws.mathcalculation.Substract")
	@ResponseWrapper(localName = "substractResponse", targetNamespace = "http://ws.sowow.net/MathCalculation/", className = "net.sowow.ws.mathcalculation.SubstractResponse")
	public float substract(@WebParam(name = "a", targetNamespace = "") float a,
			@WebParam(name = "b", targetNamespace = "") float b) {
		float result = a - b;
		return result;
	}

	/**
	 * Multiply.
	 *
	 * @param a the a
	 * @param b the b
	 * @return the float
	 * @see net.sowow.ws.mathcalculation.MathCalculationInterface#multiply(float, float)
	 */
	@Override
	@WebMethod(action = "http://ws.sowow.net/MathCalculation/multiply")
	@WebResult(name = "result", targetNamespace = "")
	@RequestWrapper(localName = "multiply", targetNamespace = "http://ws.sowow.net/MathCalculation/", className = "net.sowow.ws.mathcalculation.Multiply")
	@ResponseWrapper(localName = "multiplyResponse", targetNamespace = "http://ws.sowow.net/MathCalculation/", className = "net.sowow.ws.mathcalculation.MultiplyResponse")
	public float multiply(@WebParam(name = "a", targetNamespace = "") float a,
			@WebParam(name = "b", targetNamespace = "") float b) {
		float result = a * b;
		return result;
	}

	/**
	 * Divid.
	 *
	 * @param a the a
	 * @param b the b
	 * @return the float
	 * @see net.sowow.ws.mathcalculation.MathCalculationInterface#divid(float, float)
	 */
	@Override
	@WebMethod(action = "http://ws.sowow.net/MathCalculation/divid")
	@WebResult(name = "result", targetNamespace = "")
	@RequestWrapper(localName = "divid", targetNamespace = "http://ws.sowow.net/MathCalculation/", className = "net.sowow.ws.mathcalculation.Divid")
	@ResponseWrapper(localName = "dividResponse", targetNamespace = "http://ws.sowow.net/MathCalculation/", className = "net.sowow.ws.mathcalculation.DividResponse")
	public float divid(@WebParam(name = "a", targetNamespace = "") float a,
			@WebParam(name = "b", targetNamespace = "") float b) {
		float result = a / b;
		return result;
	}

}
